﻿@model ChampionFramework.Models.Jogador
@{
	ViewBag.Title = "Edit";
}
<h2>
	Edit</h2>
@using (Html.BeginForm())
{
	@Html.ValidationSummary(true)

	<fieldset>
		<legend>Jogador</legend>
		@Html.HiddenFor(model => model.Id)
		<div class="editor-label">
			@Html.LabelFor(model => model.Nome)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Nome)
			@Html.ValidationMessageFor(model => model.Nome)
		</div>
		<div class="editor-label">
			@Html.LabelFor(model => model.Nacionalidade)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Nacionalidade)
			@Html.ValidationMessageFor(model => model.Nacionalidade)
		</div>
		<div class="editor-label">
			@Html.LabelFor(model => model.Idade)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Idade)
			@Html.ValidationMessageFor(model => model.Idade)
		</div>
		<div class="editor-label">
			Data de Inscrição
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.DataInscricao)
			@Html.ValidationMessageFor(model => model.DataInscricao)
		</div>
		<div class="editor-label">
			@Html.LabelFor(model => model.TimeId, "Time")
		</div>
		<div class="editor-field">
			@Html.DropDownList("TimeId", String.Empty)
			@Html.ValidationMessageFor(model => model.TimeId)
		</div>
		<p>
			<input type="submit" value="Save" />
		</p>
	</fieldset>
}
<div>
	@Html.ActionLink("Back to List", "Index")
</div>
@section Scripts {
	@Scripts.Render("~/bundles/jqueryval")
}